<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
  <title></title>
  <script type="text/javascript">
    function jump()
    {
      window.location="/thinkphp/User/add";
    }
  </script>
</head>
<body>
  <table align="center" width="500" border="1">
    <tr>
      <th>id</th>
      <th>username</th>
      <th>sex</th>
      <th>操作</th>
    </tr>
    <?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$kk): $mod = ($i % 2 );++$i;?><tr>
        <td align="center"><?php echo ($kk["id"]); ?></td>
        <td align="center"><?php echo ($kk["username"]); ?></td>
        <td align="center"><?php echo ($kk["sex"]); ?></td>
        <td align="center"><a href="/thinkphp/User/modify/id/<?php echo ($kk["id"]); ?>">修改</a> | <a href="/thinkphp/User/del/id/<?php echo ($kk["id"]); ?>">删除</a></td>
      </tr><?php endforeach; endif; else: echo "" ;endif; ?>
  </table>
  <center>
    <button onclick="jump()">新建用户</button>
  </center>
</body>
</html>